Optimal. Leaf size=50 \[ \frac{\sqrt{a \cos ^2(e+f x)}}{f}-\frac{\sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a \cos ^2(e+f x)}}{\sqrt{a}}\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0790169, antiderivative size = 50, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.208, Rules used = {3176, 3205, 50, 63, 206} \[ \frac{\sqrt{a \cos ^2(e+f x)}}{f}-\frac{\sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a \cos ^2(e+f x)}}{\sqrt{a}}\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3176
Rule 3205
Rule 50
Rule 63
Rule 206
Rubi steps
\begin{align*} \int \cot (e+f x) \sqrt{a-a \sin ^2(e+f x)} \, dx &=\int \sqrt{a \cos ^2(e+f x)} \cot (e+f x) \, dx\\ &=-\frac{\operatorname{Subst}\left (\int \frac{\sqrt{a x}}{1-x} \, dx,x,\cos ^2(e+f x)\right )}{2 f}\\ &=\frac{\sqrt{a \cos ^2(e+f x)}}{f}-\frac{a \operatorname{Subst}\left (\int \frac{1}{(1-x) \sqrt{a x}} \, dx,x,\cos ^2(e+f x)\right )}{2 f}\\ &=\frac{\sqrt{a \cos ^2(e+f x)}}{f}-\frac{\operatorname{Subst}\left (\int \frac{1}{1-\frac{x^2}{a}} \, dx,x,\sqrt{a \cos ^2(e+f x)}\right )}{f}\\ &=-\frac{\sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a \cos ^2(e+f x)}}{\sqrt{a}}\right )}{f}+\frac{\sqrt{a \cos ^2(e+f x)}}{f}\\ \end{align*}
Mathematica [A] time = 0.0692788, size = 55, normalized size = 1.1 \[ \frac{\sec (e+f x) \sqrt{a \cos ^2(e+f x)} \left (\cos (e+f x)+\log \left (\sin \left (\frac{1}{2} (e+f x)\right )\right )-\log \left (\cos \left (\frac{1}{2} (e+f x)\right )\right )\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 1.521, size = 55, normalized size = 1.1 \begin{align*} -{\frac{1}{f}\sqrt{a}\ln \left ( 2\,{\frac{\sqrt{a}\sqrt{a \left ( \cos \left ( fx+e \right ) \right ) ^{2}}+a}{\sin \left ( fx+e \right ) }} \right ) }+{\frac{1}{f}\sqrt{a \left ( \cos \left ( fx+e \right ) \right ) ^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.65234, size = 146, normalized size = 2.92 \begin{align*} \frac{\sqrt{a \cos \left (f x + e\right )^{2}}{\left (2 \, \cos \left (f x + e\right ) - \log \left (-\frac{\cos \left (f x + e\right ) + 1}{\cos \left (f x + e\right ) - 1}\right )\right )}}{2 \, f \cos \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{- a \left (\sin{\left (e + f x \right )} - 1\right ) \left (\sin{\left (e + f x \right )} + 1\right )} \cot{\left (e + f x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.09789, size = 69, normalized size = 1.38 \begin{align*} \frac{\frac{a \arctan \left (\frac{\sqrt{-a \sin \left (f x + e\right )^{2} + a}}{\sqrt{-a}}\right )}{\sqrt{-a}} + \sqrt{-a \sin \left (f x + e\right )^{2} + a}}{f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]